<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>生成业务表字段列表</title>
    <jsp:include page="/WEB-INF/view/commons/css.jsp" />
</head>
<body >
<div id="main-container" class="container-fluid">
    <form action="gentablecolumn/dolist" method="post" name="searchForm" id="searchForm" role="form" class="form-horizontal">


        <div class="form-group">
            <label class="col-sm-1 control-label">业务表id：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="genTableId" value="${searchEntity.genTableId}" placeholder="业务表id">
            </div>
            <label class="col-sm-1 control-label">列名：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="columnName" value="${searchEntity.columnName}" placeholder="列名">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">列描述：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="columnRemark" value="${searchEntity.columnRemark}" placeholder="列描述">
            </div>
            <label class="col-sm-1 control-label">字段类型：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="columnType" value="${searchEntity.columnType}" placeholder="字段类型">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">jdbc类型：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="jdbcType" value="${searchEntity.jdbcType}" placeholder="jdbc类型">
            </div>
            <label class="col-sm-1 control-label">java类型：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="javaType" value="${searchEntity.javaType}" placeholder="java类型">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">java字段名：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="javaField" value="${searchEntity.javaField}" placeholder="java字段名">
            </div>
            <label class="col-sm-1 control-label">主键：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="isPk" value="${searchEntity.isPk}" placeholder="主键">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">插入：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="isInsert" value="${searchEntity.isInsert}" placeholder="插入">
            </div>
            <label class="col-sm-1 control-label">编辑：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="isRequire" value="${searchEntity.isRequire}" placeholder="编辑">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">列表：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="isList" value="${searchEntity.isList}" placeholder="列表">
            </div>
            <label class="col-sm-1 control-label">查看：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="isInfo" value="${searchEntity.isInfo}" placeholder="查看">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">查询：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="isQuery" value="${searchEntity.isQuery}" placeholder="查询">
            </div>
            <label class="col-sm-1 control-label">查询匹配方式：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="compareType" value="${searchEntity.compareType}" placeholder="查询匹配方式">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">表单类型：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="formType" value="${searchEntity.formType}" placeholder="表单类型">
            </div>
            <label class="col-sm-1 control-label">字典类型：</label>
            <div class="col-md-4">
                    <input type="text" class="form-control" name="dicType" value="${searchEntity.dicType}" placeholder="字典类型">

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-1 control-label">排序：</label>
            <div class="col-md-4">
                <input type="text" class="form-control" name="sortNum" value="${searchEntity.sortNum}" placeholder="排序">
            </div>
            <label class="col-sm-1 control-label">排序：</label>
            <div class="col-md-4">
                <div class="input-group">
                    <input type="text" class="form-control" name="sortNum" value="${searchEntity.sortNum}" placeholder="排序">
                    <div class="input-group-btn">
                        <button id="searchBtn" type="button" class="btn btn-sm btn-info"><i class="fa fa-search"></i> 搜索</button>
                    </div>
                </div>

            </div>
        </div>
    </form>
    <div class="row">
        <div class="col-md-10">
            <p>
                <shiro:hasPermission name="gentablecolumn:add">
                    <button type="button" data-url="gentablecolumn/create" class="btn btn-sm btn-success link_add" data-title="新增生成业务表字段"><i class="fa fa-plus"></i> 新增</button>
                </shiro:hasPermission>
                <shiro:hasPermission name="gentablecolumn:edit">
                    <button type="button" data-url="gentablecolumn/edit" class="btn btn-sm btn-primary link_edit" data-title="编辑生成业务表字段"><i class="fa fa-edit"></i> 修改</button>
                </shiro:hasPermission>
                <shiro:hasPermission name="gentablecolumn:delete">
                    <button type="button" data-url="gentablecolumn/delete" class="btn btn-sm btn-danger link_del"><i class="fa fa-trash"></i> 删除</button>
                </shiro:hasPermission>
                <shiro:hasPermission name="gentablecolumn:view">
                    <button type="button" data-url="gentablecolumn/info" class="btn btn-sm link_info" data-title="生成业务表字段详情"><i class="fa fa-book"></i> 详情</button>
                </shiro:hasPermission>
            </p>
        </div>
    </div>

    <table id="table_data" class="table table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th class="center td-checkbox" width="5%">
                <label><input type="checkbox" class="check-all ace" data-tableid="table_data" /><span class="lbl"></span></label>
            </th>
            <th width="10%">业务表id</th>
            <th width="10%">列名</th>
            <th width="10%">列描述</th>
            <th width="10%">字段类型</th>
            <th width="10%">jdbc类型</th>
            <th width="10%">java类型</th>
            <th width="10%">java字段名</th>
            <th width="10%">主键</th>
            <th width="10%">插入</th>
            <th width="10%">编辑</th>
            <th width="10%">列表</th>
            <th width="10%">查看</th>
            <th width="10%">查询</th>
            <th width="10%">查询匹配方式</th>
            <th width="10%">表单类型</th>
            <th width="10%">字典类型</th>
            <th width="10%">排序</th>
        </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>
<!-- 返回顶部  -->
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
<!-- script start -->
<jsp:include page="/WEB-INF/view/commons/js.jsp" />
<script type="text/javascript">
    $(document).ready(function(e) {
        var table = $("#table_data").dataTable({
            ajax: function(data, callback, settings){
                tableAjax($("#searchForm"),data, callback, settings);
            },
            //列表表头字段
            columns: [
                mainConfig.checkboxColumn,
                { "data": "genTableId",name:"gen_table_id" },
                { "data": "columnName",name:"column_name" },
                { "data": "columnRemark",name:"column_remark" },
                { "data": "columnType",name:"column_type" },
                { "data": "jdbcType",name:"jdbc_type" },
                { "data": "javaType",name:"java_type" },
                { "data": "javaField",name:"java_field" },
                { "data": "isPk",name:"is_pk" },
                { "data": "isInsert",name:"is_insert" },
                { "data": "isRequire",name:"is_require" },
                { "data": "isList",name:"is_list" },
                { "data": "isInfo",name:"is_info" },
                { "data": "isQuery",name:"is_query" },
                { "data": "compareType",name:"compare_type" },
                { "data": "formType",name:"form_type" },
                { "data": "dicType",name:"dic_type" },
                { "data": "sortNum",name:"sort_num" }
        ]
    }).api();

        //查询条件
        $("#searchForm").submit(function(){
            table.ajax.reload();
            return false;
        });
    });
</script>
<!-- script end -->
</body>
</html>